package com.yj.springbootmuldatasources.rest;

import com.yj.springbootmuldatasources.entity.SysLog;
import com.yj.springbootmuldatasources.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TestController {

    @Autowired
    SysLogService sysLogService;

    @GetMapping("/findAll")
    public List<SysLog> findAll(){
        return sysLogService.findAll();
    }

}
